<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./index.css">
    <link media="(min-width: 500px)" rel="stylesheet" href="./desktop.css">
    <link media="(max-width: 500px)" rel="stylesheet" href="./mobile.css">
    <style>
      #checkbox1:checked ~p{
        background: pink;

      }
    </style>
  
  </head>
  <body>
    <input id="checkbox1" type="checkbox">多选框伪类

    <p>aaa</p>

    

  </body>
</html>
